package com.yindian.cos.easy.security.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 失败处理器
 * 所有AuthenticationException异常都会进入此类，异常会有明确的划分，以方便根据类型做出不同的处理
 * 具体的异常处理需要用户自己实现
 *
 * @author zhangchuanhao
 * @create 2018/11/18
 */
public interface AuthenticationFailureHandler {
    void handler(HttpServletRequest request, HttpServletResponse response, Exception ex) throws IOException;
}
